From ea748e1db1e0763f719138484bb0d1864112dc24 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Fri, 11 Jan 2008 14:43:10 +0000 Subject: [PATCH] (atomic-change-group): Prevent undo list truncation. --- lisp/subr.el | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lisp/subr.el b/lisp/subr.el index a9674bbba36..b4bd4a0150c 100644 --- a/lisp/subr.el +++ b/lisp/subr.el @@ -1802,6 +1802,10 @@ user can undo the change normally." (let ((handle (make-symbol "--change-group-handle--")) (success (make-symbol "--change-group-success--"))) `(let ((,handle (prepare-change-group)) + ;; Don't truncate any undo data in the middle of this. + (undo-outer-limit nil) + (undo-limit most-positive-fixnum) + (undo-strong-limit most-positive-fixnum) (,success nil)) (unwind-protect (progn -- 2.30.2